import { request } from '@/utils/request.js'

//登录
export function Login(data) {
  return request.net({
    url: '/weChat/app/login',
    method: 'POST',
    data: data,
  })
}


/* 获取用户角色和项目信息 */
export function getRoleAndProject(data) {
  return request.net({
    url: '/weChat/app/getProject',
    method: 'get',
    data: data,
  })
}


/* 获取办事指南 */
export function getGuide(data) {
  return request.net({
    url: '/overview/mhxx',
    method: 'get',
    data: data,
  })
}

/* 获取办事指南详情 */
export function getGuideDetail(id) {
  return request.net({
    url: '/overview/mhxq/' + id,
    method: 'get',
  })
}

/* 获取*/
export function getPermissionToken(data) {
  return request.net({
    url: '/xcx/zysd/token',
    method: 'post',
    data
  })
}
